<?php

echo '<li>';
echo '<a href="/post/artist/'.$track['Track']['artist'].'">';

if ($track['Track']['artist'] && $track['Track']['song']) echo '<span>'.$track['Track']['artist'].'</span></a> - <span>'.$track['Track']['song'].'</span>';
else echo "</a><span>".$track['Track']['name'].'</span>';

echo '<span class="likes">'.$track['Track']['likes'].' likes.</span>';
echo '<a class="like" id="like_'.$track['Track']['id'].'" href="javascript: like('.$track['Track']['id'].')"><img src="/img/thumbsup.png"/></a>';
echo '<a class="play" href="javascript: play('.($index+1).')">&nbsp;</a>';

if ($_SESSION['User']['id'])
{
	echo $html->link("Download", $track['Track']['cdn_domain'].$track['Track']['cdn_path']);
	echo $html->tag("div", "A", array("track_id" => $track['Track']['id'], "id" => "actions_".$track['Track']['id'], "class" => "dropdown"));
}

echo '</li>';

?>